<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewEnderecoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewEnderecoLabel_idEndereco}"/>
                    <h:outputText value="#{enderecoController.selected.idEndereco}" title="#{bundle.ViewEnderecoTitle_idEndereco}"/>
                    <h:outputText value="#{bundle.ViewEnderecoLabel_logradouro}"/>
                    <h:outputText value="#{enderecoController.selected.logradouro}" title="#{bundle.ViewEnderecoTitle_logradouro}"/>
                    <h:outputText value="#{bundle.ViewEnderecoLabel_numero}"/>
                    <h:outputText value="#{enderecoController.selected.numero}" title="#{bundle.ViewEnderecoTitle_numero}"/>
                    <h:outputText value="#{bundle.ViewEnderecoLabel_bairro}"/>
                    <h:outputText value="#{enderecoController.selected.bairro}" title="#{bundle.ViewEnderecoTitle_bairro}"/>
                    <h:outputText value="#{bundle.ViewEnderecoLabel_cidade}"/>
                    <h:outputText value="#{enderecoController.selected.cidade}" title="#{bundle.ViewEnderecoTitle_cidade}"/>
                    <h:outputText value="#{bundle.ViewEnderecoLabel_uf}"/>
                    <h:outputText value="#{enderecoController.selected.uf}" title="#{bundle.ViewEnderecoTitle_uf}"/>
                    <h:outputText value="#{bundle.ViewEnderecoLabel_cep}"/>
                    <h:outputText value="#{enderecoController.selected.cep}" title="#{bundle.ViewEnderecoTitle_cep}"/>
                    <h:outputText value="#{bundle.ViewEnderecoLabel_usuarioCli}"/>
                    <h:outputText value="#{enderecoController.selected.usuarioCli}" title="#{bundle.ViewEnderecoTitle_usuarioCli}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{enderecoController.destroyAndView}" value="#{bundle.ViewEnderecoDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewEnderecoEditLink}"/>
                <br />
                <h:commandLink action="#{enderecoController.prepareCreate}" value="#{bundle.ViewEnderecoCreateLink}" />
                <br />
                <h:commandLink action="#{enderecoController.prepareList}" value="#{bundle.ViewEnderecoShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewEnderecoIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
